package ${packagePath}.api;

import com.vim.common.model.response.Response;
import com.vim.common.model.response.RestfulResponse;
import com.vim.common.annotation.ParentModuleInfo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
* 接口参考
*/
@ParentModuleInfo(moduleCode = "父级模块标识", moduleName = "父级模块名称")
@Api(value = "模块名称", description = "模块描述")
@RestController
@RequestMapping(value = "/test")
public class TestController {

    @ApiOperation(value = "方法名称", notes="{\"id\":\"1\",\"name\":\"2\"}", httpMethod="GET")
    @ApiImplicitParams({@ApiImplicitParam(name = "参数名称", value = "参数说明", required = true)})
    @RequestMapping(value = "/test")
    public RestfulResponse test(@RequestParam(value = "id") String id){
        return new RestfulResponse(Response.OK);
    }

}
